package com.whfc.ms.api.emp.service.impl;

import com.whfc.emp.entity.AppSyncRealNameConfig;
import com.whfc.emp.service.AppEmpConfigService;
import com.whfc.ms.api.emp.service.MsAppSyncRealNameConfigService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MsAppSyncRealNameConfigServiceImpl implements MsAppSyncRealNameConfigService {

    @DubboReference(interfaceClass = AppEmpConfigService.class, version = "1.0.0")
    private AppEmpConfigService appEmpConfigService;

    @Override
    public void add(AppSyncRealNameConfig request) {
        appEmpConfigService.addSyncRealNameConfig(request);
    }

    @Override
    public void edit(AppSyncRealNameConfig request) {
        appEmpConfigService.editSyncRealNameConfig(request);
    }

    @Override
    public void del(AppSyncRealNameConfig request) {
        appEmpConfigService.delSyncRealNameConfig(request);
    }

    @Override
    public List<AppSyncRealNameConfig> list(AppSyncRealNameConfig request) {
        return appEmpConfigService.listSyncRealNameConfig(request);
    }
}
